import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [
  {path: '/home', component: () => import('../components/home.vue'),
    children:[
      {
        path: 'message',
        component: () => import('../components/message.vue')
      }
    ]
  },
  {path: '/about', component: () => import('../components/about.vue')},
]

const router = createRouter({
  routes,
  history: createWebHashHistory()
})

export default router